import request from '@/utils/request'

// 查询专利列表
export function listCompanyPatents(query) {
  return request({
    url: '/Patents/companyPatents/list',
    method: 'get',
    params: query
  })
}

// 查询专利详细
export function getCompanyPatents(id) {
  return request({
    url: '/Patents/companyPatents/' + id,
    method: 'get'
  })
}

// 保存专利
export function saveCompanyPatents(data) {
  return request({
    url: '/Patents/companyPatents/save',
    method: 'post',
    data: data
  })
}

// 删除专利
export function delCompanyPatents(id) {
  return request({
    url: '/Patents/companyPatents/' + id,
    method: 'delete'
  })
}

// 导出专利
export function exportCompanyPatents(query) {
  return request({
    url: '/Patents/companyPatents/export',
    method: 'get',
    params: query
  })
}
